/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nys.conci.cliente.entidad;

import com.nys.conci.base.ObjetoBase;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

/**
 *
 * @author Yeudy10
 */
@Entity
@Table(name = "plan_cliente", schema = "public")
@SequenceGenerator(name = "ID_SEQ", sequenceName = "seq_plan_cliente", allocationSize = 1)
public class PlanCliente extends ObjetoBase implements Serializable {

    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>>  VARIABLES  <<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>    
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ID_SEQ")
    private Integer id_plan_cliente;
    private String identificacion_c;
    private Integer id_plan_pago;
    private String estado;
    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>>  CONSTRUCTOR  <<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>

    public PlanCliente() {
    }

    public PlanCliente(Integer id_plan_cliente) {
        this.id_plan_cliente = id_plan_cliente;
    }

    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>>  GETS & SETS  <<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    /**
     * @return the id_plan_cliente
     */
    public Integer getId_plan_cliente() {
        return id_plan_cliente;
    }

    /**
     * @param id_plan_cliente the id_plan_cliente to set
     */
    public void setId_plan_cliente(Integer id_plan_cliente) {
        this.id_plan_cliente = id_plan_cliente;
    }

    /**
     * @return the identificacion_c
     */
    public String getIdentificacion_c() {
        return identificacion_c;
    }

    /**
     * @param identificacion_c the identificacion_c to set
     */
    public void setIdentificacion_c(String identificacion_c) {
        this.identificacion_c = identificacion_c;
    }

    /**
     * @return the id_plan_pago
     */
    public Integer getId_plan_pago() {
        return id_plan_pago;
    }

    /**
     * @param id_plan_pago the id_plan_pago to set
     */
    public void setId_plan_pago(Integer id_plan_pago) {
        this.id_plan_pago = id_plan_pago;
    }

    /**
     * @return the estado
     */
    public String getEstado() {
        return estado;
    }

    /**
     * @param estado the estado to set
     */
    public void setEstado(String estado) {
        this.estado = estado;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PlanCliente other = (PlanCliente) obj;
        if (this.id_plan_cliente != other.id_plan_cliente && (this.id_plan_cliente == null || !this.id_plan_cliente.equals(other.id_plan_cliente))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 37 * hash + (this.id_plan_cliente != null ? this.id_plan_cliente.hashCode() : 0);
        return hash;
    }
}
